package com.game.springbootstart.service.impl;

import com.game.springbootstart.entity.Notices;
import com.game.springbootstart.mapper.NoticesMapper;
import com.game.springbootstart.service.INoticesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 通知表 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-01-24
 */
@Service
public class NoticesServiceImpl extends ServiceImpl<NoticesMapper, Notices> implements INoticesService {

    @Autowired
    private NoticesMapper noticesMapper;
    @Override
    public String viewNotices(Integer id) {
        String notices = noticesMapper.viewNotices(id);
        return notices;
    }

    @Override
    public List<Notices> listBy() {
        return noticesMapper.listBy();
    }
}
